home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
libextra
/
priority.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-13
|
291b
|
24 lines
#ifdef __GNUC__
#include <inline/exec.h>
#else
#include <proto/exec.h>
#endif
long oldpri = 0;
int HavePri = 0;
void
ReducePriority(void)
{
oldpri = SetTaskPri(FindTask(0L), -1);
HavePri = 1;
}
void
RestorePriority(void)
{
if (HavePri) {
SetTaskPri(FindTask(0L), oldpri);
}
}